package com.project.biz;

import com.baomidou.mybatisplus.extension.service.IService;
import com.project.entity.CmsProductSpec;
import com.project.pojo.model.UpdateProductSpecModel;

import java.util.List;

/**
 * @Description: 商品规格业务层接口类
 * @Author: zhuchi
 * @CreateDate: 2020/10/15 15:12
 * @Version: 1.0
 */
public interface CmsProductSpecBiz extends IService<CmsProductSpec> {

    /**
     * 添加/修改商品规格
     * @param productSpecs
     * @param productId
     * @return
     */
    int updateProductSpec(List<UpdateProductSpecModel> productSpecs, Long productId);

    /**
     * 获取商品规格
     * @param productId
     * @return
     */
    List<CmsProductSpec> getProductSpecs(Long productId);

}
